﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MvcWiki.Model;
using MvcWiki.Markup;

namespace MvcWiki.Web.Prototype.MVC1.Prototyping
{
    public class WikiMarkupPrototypeProvider : IWikiMarkupProvider
    {
        public WikiMarkup CreateWikiMarkup(string wikiMarkupName)
        {
            if(wikiMarkupName == "Markdown")
            {
                return new MvcWiki.Web.Prototype.MVC1.Prototyping.WikiMarkupMarkdown { Name = "Markdown" };
            }

            throw new ArgumentOutOfRangeException("wikiMarkupName");
        }
    }
}
